package com.example.pojo;


import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;
import java.util.List;

/**
 * 答卷
 */
@Document(collection = "dj_info")
public class DJ {
    @Field("zj_id")
    private Integer zjID;   //对应哪张卷子
    @Field("user_id")
    private Integer userId;  //对应哪个学生
    @Field("result")
    private List<DT> result;  //填写的答案
    @Field("status")
    private Integer status;  //状态  是保存 还是提交的状态
    @Field("submit_time")
    private Date submitTime;   //提交时间
    @Field("save_time")
    private Date saveTime;   //保存时间

    @Override
    public String toString() {
        return "DJ{" +
                "zjID=" + zjID +
                ", userId=" + userId +
                ", result=" + result +
                ", status=" + status +
                ", submitTime=" + submitTime +
                ", saveTime=" + saveTime +
                '}';
    }

    public Integer getZjID() {
        return zjID;
    }

    public void setZjID(Integer zjID) {
        this.zjID = zjID;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public List<DT> getResult() {
        return result;
    }

    public void setResult(List<DT> result) {
        this.result = result;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public Date getSaveTime() {
        return saveTime;
    }

    public void setSaveTime(Date saveTime) {
        this.saveTime = saveTime;
    }
}
